import request from '@/utils/request'

// 查询工具收录列表
export function listToolInclusion(query) {
  return request({
    url: '/toolInclusion/list',
    method: 'get',
    params: query
  })
}

// 查询工具收录详细
export function getToolInclusion(id) {
  return request({
    url: '/toolInclusion/' + id,
    method: 'get'
  })
}

// 新增工具收录
export function addToolInclusion(data) {
  return request({
    url: '/toolInclusion',
    method: 'post',
    data: data
  })
}

// 修改工具收录
export function updateToolInclusion(data) {
  return request({
    url: '/toolInclusion',
    method: 'put',
    data: data
  })
}
export function getExamineStatus(projectId) {
  return request({
    url: '/inclusionExamine/getExamineStatus/' + projectId,
    method: 'get'

  })
}
// 删除工具收录
export function delToolInclusion(id) {
  return request({
    url: '/toolInclusion/' + id,
    method: 'delete'
  })
}
